import {request} from '../../utils/request.ts'


export const get = ()=>request.get<Array<UI.Func>>('/function/all')
export const update=(data:API.Func.Update)=>request.post<null>('/function/update',data)
export const add=(data:API.Func.Add)=>request.post<number>('/function/add',data)